package com.training.java.core.polymorphism;

public class RaceCar extends Car {

	private boolean nitro;
	
	public RaceCar()
	{
	super();	
	}
	
	RaceCar(int year, String make, String model, boolean nitro) {
		super(make, model, year);
		this.nitro = nitro;
	}

	void race() {
		System.out.println("I am racing!");
		acclerate(getMaximumSpeed());
	}

	public void start() {

		System.out.println("I am starting my RaceCar!!!");

	}

	int acclerate(int howMuch) {

		return super.acclerate(howMuch+50);
	}
}
